package org.lee.obs.service.impl;

import org.lee.obs.LotteryResult;
import org.lee.obs.service.CarLotService;
import org.lee.obs.service.LotteryService;

import java.util.Date;

/**
 * LotteryService
 * 摇号服务
 *
 * @author dralee
 * @date 2021-11-23 18:46:33
 **/
public class LotteryServiceImpl extends LotteryService {

    private final CarLotService carLotService = new CarLotService();

    @Override
    protected LotteryResult doDraw(String uid) {
        return LotteryResult.builder().uId(uid).message(carLotService.lottery(uid)).createTime(new Date()).build();
    }
}
